package cn.hznc.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Objects;

/**
 * @Author：Administrator
 * @Date：2023/6/28 14:07
 */
@Getter
@Setter
public class IToolCabinetStockImport{

    @ExcelProperty(value = "物料柜")
    private String position;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        IToolCabinetStockImport that = (IToolCabinetStockImport) o;

        return Objects.equals(partno, that.partno);
    }

    @Override
    public int hashCode() {
        return partno != null ? partno.hashCode() : 0;
    }

    @ExcelProperty(value = "料号")
    private String partno;

    @ExcelProperty(value = "品名")
    private String typeName;

    @ExcelProperty(value = "品牌")
    private String brand;

    @ExcelProperty(value = "规格型号")
    private String type;

    @ExcelProperty(value = "单位")
    private String unit;

    @ExcelProperty(value = "通道库存")
    private Integer physicalInventory;

    @ExcelProperty(value = "总库存")
    private Integer totalPhysicalInventory;

    @ExcelProperty(value = "安全库存")
    private Integer safetyInventory;


    @ExcelProperty(value = "类型代码")
    private String typeCode;
}
